#encoding:utf8

import sys
import os
import winreg

def main():
	key		= winreg.HKEY_CLASSES_ROOT
	subkey	= r'http\shell\open\command'
	handle	= winreg.OpenKey(key, subkey)
	if handle:
		path= winreg.QueryValueEx(handle, None)[0]
		for fname in path.split('"'):
			if len(fname) > 4 and os.path.exists(fname):
				os.startfile(fname)
				print('Start file %s successfully.'%fname)

if __name__=='__main__':
	main()
